<?php
namespace App\Model\BbcModel;

use Service\Code\Normal;
use App\Model\BaseModel\BaseBbcModel;

/**
 * 店铺关联副表
 */
class ViceStore extends BaseBbcModel {

    public $table = 'ly_vice_store';

    /**
     * 判断是否是关联店铺
     */
    public static function checkRelation($param){
        $exist = self::where('main_mn_sid', $param['main_mn_sid'])->where('vice_mn_sid', $param['vice_mn_sid'])->where('cid', $param['cid'])->count();
        if($exist){
            return true;
        }else{
            return false;
        }
    }

}